/*
 * @Author: your name
 * @Date: 2021-04-05 15:40:42
 * @LastEditTime: 2021-04-06 17:25:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \chronic-back-end\module\consultMod\model.go
 */
package consultMod

import (
	"chronic/module/userMod"

	"github.com/jinzhu/gorm"
)

type Consultation struct {
	gorm.Model
	PatientID   uint         `gorm:"not null"`
	Patient     userMod.User `gorm:"foreignKey:PatientID"`
	DoctorID    uint         `gorm:"not null"`
	Doctor      userMod.User `gorm:"foreignKey:DoctorID"`
	Content     string       `gorm:"not null"`
	ConsultTime string
	Reply       string
	ReplyTime   string
}
